<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
%>
<html>
<style>
    .btn.fill {
        background: #34dd87;
        color: #474c6c;
    }
    .btn {
        line-height: 1em;
        font-family: arial, sans-serif;
        font-size: 30px;
        font-weight: bold;
        color: white;
        border: 2px solid transparent;
        margin: 0 10px 10px 0;
        padding: 6px 14px;
        box-sizing: border-box;
        display: inline-block;
        text-align: center;
        vertical-align: middle;
        touch-action: manipulation;
        cursor: pointer;
        width: auto;
        white-space: nowrap;
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
    }
</style>
<head>
    <title>个人中心-志愿者</title>
    <link rel="stylesheet" href="<%=path%>/web/userinfo/css/log.css">
</head>
<body>
<div class="make_head_title">加入志愿者</div>
<br>
<c:if test="${(sessionScope.userinfo.volunteer eq false)&&(sessionScope.userinfo.volunteerApply eq NULL)}">
    <span style="color:red">您还没有提交志愿者申请，点击加入我们</span>
    <div style="text-align:center;padding-top:100px"><a target="_parent" href="<%=path%>/web/userinfo/applyVolunteer" class="btn fill">加入我们</a></div>
</c:if>
<c:if test="${(sessionScope.userinfo.volunteer eq false)&&(sessionScope.userinfo.volunteerApply eq false)}">
    <span style="color:red">您提交的志愿者申请被驳回，驳回理由如下（您可重新提交加入我们）：${sessionScope.userinfo.deleteReason}</span>
    <div style="text-align:center;padding-top:100px"><a target="_parent" href="<%=path%>/web/userinfo/applyVolunteer" class="btn fill">加入我们</a></div>
</c:if>
<c:if test="${(sessionScope.userinfo.volunteer eq true)&&(sessionScope.userinfo.volunteerApply eq true)}">
    <span style="color:red">欢迎加入我们，希望我们一起努力让亲人团聚</span>
</c:if>
</body>
</html>
